package com.ruoyi.teaching.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 每日任务对象 ya_daily_tasks
 *
 * @author sunshine
 * @date 2024-02-01
 */
@Data

public class DailyTasks extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 课程内容 */
    @Excel(name = "课程内容")
    private String courseContent;

    /** 阶段 */
    @Excel(name = "阶段")
    private Integer stage;

    /** 班级id */
    @Excel(name = "班级id")
    private Long classesId;

    /** 学生ID */
    @Excel(name = "学生ID")
    private Long studentId;

    /** 任务状态：1-未开始；2-进行中；3-已完成；4-已过期 */
    @Excel(name = "任务状态：1-未开始；2-进行中；3-已完成；4-已过期")
    private Integer status;

    /** 是否合格: 1-质量&速度合格；2-质量&速度不合格；3-速度不合格；4-质量不合格 */
    @Excel(name = "是否合格: 1-质量&速度合格；2-质量&速度不合格；3-速度不合格；4-质量不合格")
    private Integer qualified;

    /** 总结图片 */
    @Excel(name = "总结图片")
    private String summaryPicUrl;

    /** 难点反馈 */
    @Excel(name = "难点反馈")
    private String difficultyFeedback;

    @Builder
    public DailyTasks(Long id, Date date, String courseContent, Integer stage, Long classesId, Long studentId, Integer status, Integer qualified, String summaryPicUrl, String difficultyFeedback) {
        this.id = id;
        this.date = date;
        this.courseContent = courseContent;
        this.stage = stage;
        this.classesId = classesId;
        this.studentId = studentId;
        this.status = status;
        this.qualified = qualified;
        this.summaryPicUrl = summaryPicUrl;
        this.difficultyFeedback = difficultyFeedback;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDate(Date date)
    {
        this.date = date;
    }

    public Date getDate()
    {
        return date;
    }
    public void setCourseContent(String courseContent)
    {
        this.courseContent = courseContent;
    }

    public String getCourseContent()
    {
        return courseContent;
    }
    public void setStage(Integer stage)
    {
        this.stage = stage;
    }

    public Integer getStage()
    {
        return stage;
    }
    public void setClassesId(Long classesId)
    {
        this.classesId = classesId;
    }

    public Long getClassesId()
    {
        return classesId;
    }
    public void setStudentId(Long studentId)
    {
        this.studentId = studentId;
    }

    public Long getStudentId()
    {
        return studentId;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setQualified(Integer qualified)
    {
        this.qualified = qualified;
    }

    public Integer getQualified()
    {
        return qualified;
    }
    public void setSummaryPicUrl(String summaryPicUrl)
    {
        this.summaryPicUrl = summaryPicUrl;
    }

    public String getSummaryPicUrl()
    {
        return summaryPicUrl;
    }
    public void setDifficultyFeedback(String difficultyFeedback)
    {
        this.difficultyFeedback = difficultyFeedback;
    }

    public String getDifficultyFeedback()
    {
        return difficultyFeedback;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("date", getDate())
            .append("courseContent", getCourseContent())
            .append("stage", getStage())
            .append("classesId", getClassesId())
            .append("studentId", getStudentId())
            .append("status", getStatus())
            .append("qualified", getQualified())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("summaryPicUrl", getSummaryPicUrl())
            .append("difficultyFeedback", getDifficultyFeedback())
            .toString();
    }
}
